package com.ylyq.ylxx.model.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ylyq.ylxx.entity.YlyqQuartz;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * @ClassName QueryAutoStopOrOpen
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/9/24 15:54
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "查询自动启停规则的返回参数")
public class QueryAutoStopOrOpen {
    @ApiModelProperty(value = "广告主ID")
    private Long advertiserId;

    @ApiModelProperty(value = "页码")
    private Long page;

    @ApiModelProperty(value = "每页数量")
    private Long pageSize;

    @ApiModelProperty(value = "总数量")
    private Long total;

    @ApiModelProperty(value = "当前")
    private Long current;

    @ApiModelProperty(value = "查询自动启停规则的返回参数集合")
    private List<QueryAutoStopOrOpenList> detailList;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @ApiModel(value = "查询自动启停规则的返回参数集合")
    public static class QueryAutoStopOrOpenList {

        @ApiModelProperty(value = "quartz的job_group")
        private String jobGroup;

        @ApiModelProperty(value = "quartz的trigger_group")
        private String triggerGroup;

        @ApiModelProperty(value = "quartz的type")
        private Integer type;

        @ApiModelProperty(value = "quartz的time")
        private String time;

        @ApiModelProperty(value = "quartz的money")
        private Double money;

        @ApiModelProperty(value = "计划的集合")
        private List<QueryAutoStopOrOpenPlanList> planNames;

        @ApiModelProperty(value = "启停规则的集合")
        private  List<Map<String, Object>> collet;

        @Data
        @NoArgsConstructor
        @AllArgsConstructor
        @ApiModel(value = "查询自动启停规则的返回参数集合")
        public static class QueryAutoStopOrOpenPlanList {
            @ApiModelProperty(value = "计划的id")
            private Long id;
            @ApiModelProperty(value = "计划的name")
            private String name;
        }
    }
}
